package com.example.dormitorymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-06-02
 */
@ApiModel(value = "宿舍管理对象")
public class Dormroom implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "宿舍号，例如：116")
    private Integer number;

    @ApiModelProperty(value = "栋，例如：9")
    private Integer building;

    @ApiModelProperty(value = "该宿舍的总人数")
    private Integer totalpeople;

    @ApiModelProperty(value = "管理员名字")
    private String administrator;

    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public Integer getNumber() {
        return number;
    }

      public void setNumber(Integer number) {
          this.number = number;
      }
    
    public Integer getBuilding() {
        return building;
    }

      public void setBuilding(Integer building) {
          this.building = building;
      }
    
    public Integer getTotalpeople() {
        return totalpeople;
    }

      public void setTotalpeople(Integer totalpeople) {
          this.totalpeople = totalpeople;
      }
    
    public String getAdministrator() {
        return administrator;
    }

      public void setAdministrator(String administrator) {
          this.administrator = administrator;
      }

    @Override
    public String toString() {
        return "Dormroom{" +
                "id=" + id +
                ", number=" + number +
                ", building=" + building +
                ", totalpeople=" + totalpeople +
                ", administrator='" + administrator + '\'' +
                '}';
    }
}
